﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            //string str = "Server=localhost;Database=Book;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=true;";
            //string sql = "select * from Dogs";
            //SqlConnection sqlConnection = new SqlConnection(str);
            //SqlCommand sqlCommand = new SqlCommand(sql, sqlConnection);
            //sqlConnection.Open();
            //SqlDataReader  sqlDataReader = sqlCommand.ExecuteReader();
            //while(sqlDataReader.Read())
            //{
            //    Console.WriteLine(sqlDataReader.GetValue(1));
            //}
            //Console.ReadLine();
            double a = 1.7;
            int b1 = (int)a;
            int b2 = Convert.ToInt32(a);
            Console.WriteLine("b1: "+ b1);
            Console.WriteLine("b2: "+ b2);
            Console.Read();
        }
    }
}
